package com.onec.service.customer.dao.merchant;


import com.onec.service.api.dao.BaseRepository;
import com.onec.service.api.enums.ProductEnum;
import com.onec.service.customer.entity.merchant.MerchantFee;
import org.springframework.data.repository.RepositoryDefinition;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = MerchantFee.class, idClass = Long.class)
public interface MerchantFeeRepository extends BaseRepository<MerchantFee, Long> {

    MerchantFee findByMerchantIdAndProduct(Long merchantId, ProductEnum product);
}
